home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000082_news@columbia.edu_ 26 Apr 2001 14:44:17 GMT.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
44 lines
Sender: default@cc253090-a.sumt1.nj.home.com
Newsgroups: comp.os.linux.networking,comp.protocols.kermit.misc
Subject: Re: copying a file to a ftp-server
References: <20010426.13080200@risa.athome> <9c9b2o$gej$1@newsmaster.cc.columbia.edu>
Content-Type: text/plain; charset=US-ASCII
From: Dan Espen <dane@mk.telcordia.com>
Message-ID: <m3r8yfsovr.fsf@cc253090-a.sumt1.nj.home.com>
Organization: Telcordia
Lines: 24
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Crater Lake)
MIME-Version: 1.0
Date: Thu, 26 Apr 2001 14:44:17 GMT
NNTP-Posting-Host: 24.3.184.51
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.nj.home.com 988296257 24.3.184.51 (Thu, 26 Apr 2001 07:44:17 PDT)
NNTP-Posting-Date: Thu, 26 Apr 2001 07:44:17 PDT
Xref: newsmaster.cc.columbia.edu comp.os.linux.networking:329853 comp.protocols.kermit.misc:12368
fdc@watsun.cc.columbia.edu (Frank da Cruz) writes:
> In article <20010426.13080200@risa.athome>,
> <christian.verbeek@gmd.de> wrote:
> : Dear newgroup,
> :
> : how do i put a single file to a ftp server from the command line. With=20
> : the ftp program i always end up in interactive mode, but i want to do=20
> : this from within a script.
> :
> : So i need something like: ftpcopy myfile ftp://myftpserver
> :
> If you use the new Kermit FTP client:
Thats nice but not necessary.
Put the username and password in your .netrc. You don't want
your password in a script, and its simpler that way. Then do this:
(\
echo "put filename\n"\
"close\n"\
"quit\n"\
) | ftp hostname